package net.techwatch.spring.roo.domain;

import javax.persistence.Entity;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@RooEntity
@RooJavaBean
@RooToString
public class Employee {

    @NotNull
    private String firstName;

    @NotNull
    private String lastName;

    @Temporal(TemporalType.TIMESTAMP)
    private Date birthDate;
}
